home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15898 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.nyu.edu!schonberg!dewar
  2. From: dewar@cs.nyu.edu (Robert Dewar)
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: 8 Apr 1996 14:22:20 -0400
  6. Organization: Courant Institute of Mathematical Sciences
  7. Message-ID: <dewar.828987544@schonberg>
  8. References: <JSA.96Feb16135027@organon.com> <dewar.828757752@schonberg> <danpop.828819479@rscernix> <dewar.828879781@schonberg> <4k9qhe$65r@solutions.solon.com> <dewar.828936837@schonberg> <828964950snz@genesis.demon.co.uk>
  9. NNTP-Posting-Host: schonberg.cs.nyu.edu
  10. X-Newsreader: NN version 6.5.0 (NOV)
  11.  
  12. With respect to read (Linux unusual behavior), Lawrence said
  13.  
  14. "Both approaches meet the relevant standards and are correct. Only broken
  15. code has portability problems, but that's nothing new."
  16.  
  17. Can you quote the relevant standard. No description of read I ever saw
  18. was detailed or precise enough to say what the requirements on the caller
  19. are.
  20.  
  21. Lots of code is portable and broken, lots of code is (deliberately)
  22. non-portable and definitely not broken. Lots of code is carefully
  23. written to be portable, but runs into bugs in supposedly conforming
  24. implementations. Lots of code uses features that are useful, but for
  25. which no standard exists, and hence may run into portability problems.
  26.  
  27. Equating portability with non-brokenness in general is naive. Even in
  28. an environment with a definite standard, writing portable code requires
  29. a lot more than just adhering to the letter of the standard!
  30.  
  31.